{% load article_type_filter %}
<nav class="navbar navbar-default" role="navigation">
    <div class="container">

        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">技术论坛</a>
        </div>

        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                                {% article_type_all args%}
                {% article_type_one article_type_list args%}
            </ul>

            <ul class="nav navbar-nav navbar-right">
                {% if not user_obj %}
                    <li><a href="/login.html">登陆</a></li>
                    <li><a href="/register.html">注册</a></li>
                {% else %}
                    <li><a href="{% url 'home' user_obj.blog.site %}">个人首页</a></li>
                    <li><a href="#" id="logout">注销</a></li>
                {% endif %}

            </ul>
        </div>
    </div>
</nav>